import request from "../utils/request.js"

/**
 *首页 
 */
export function index() {
	return request({
		url: "/Index/Index"
	})
}

/**
 *影视 
 */
export function videolist(data) {
	return request({
		url: "/video/lst",
		data
	})
}

/**
 *影视 
 */
export function videogetBanner() {
	return request({
		url: "/video/getBanner"
	})
}

/**
 *影视详情
 */
export function videoGroup(data) {
	return request({
		url: "/video/videoGroup",
		data
	})
}


/**
 *首页商品
 */
export function IndexGoods(data) {
	return request({
		url: "/Index/IndexGoods",
		data
	})
}

/**
 *关于我们
 */
export function About() {
	return request({
		url: "/Index/About"

	})
}

/**
 *注册协议
 */
export function Agree() {
	return request({
		url: "/Index/Agree"

	})
}

/**
 *条款协议
 */
export function PayAgree() {
	return request({
		url: "/Index/PayAgree"

	})
}

/**
 *分类 
 */

export function ClassList() {
	return request({
		url: "/Goods/ClassList"
	})
}

/**
 *二级分类 
 */
export function ClassSon(data) {
	return request({
		url: "/Goods/ClassSon",
		data
	})
}

/**
 *二级分类 
 */
export function GoodsList(data) {
	return request({
		url: "/Goods/GoodsList",
		data
	})
}

/**商家搜索
 * @param {Object} data
 */
export function ShopGoods(data) {
	return request({
		url: "/Goods/ShopGoods",
		data
	})
}

/**
 * 公告
 */
export function Notice() {
	return request({
		url: "/Index/Notice"
	})
}

//公告详情
export function NoticeDetail(data) {
	return request({
		url: "/Index/NoticeDetail",
		data
	})
}

//登录
export function Login(data) {
	return request({
		url: "/Open/Login",
		method: 'post',
		data
	})
}

//注册
export function Register(data) {
	return request({
		url: "/Open/Register",
		method: 'post',
		data
	})
}

//忘记密码
export function FindPass(data) {
	return request({
		url: "/Open/FindPass",
		method: 'post',
		data
	})
}

//获取验证码
export function SendCode(data) {
	return request({
		url: "/Open/SendCode",
		method: 'post',
		data
	})
}

/**
 * 竞拍
 * @param {*} data 
 */

export function CarShow() {
	return request({
		url: "/Car/CarShow"
	})
}


//积分商城
export function ShopMall(data) {
	return request({
		url: "/Order/ShopMall",
		data
	})
}
//商品详情
export function GoodsDetail(data) {
	return request({
		url: "/Goods/GoodsDetail",
		data
	})
}

//购物车
export function UserCart() {
	return request({
		url: "/Order/UserCart"
	})
}

//加入购物车
export function AddCart(data) {
	return request({
		url: "/Order/AddCart",
		method: 'post',
		data
	})
}

//更新购物车
export function UpdateCart(data) {
	return request({
		url: "/Order/UpdateCart",
		method: 'post',
		data
	})
}
//删除购物车
export function DeleteCart(data) {
	return request({
		url: "/Order/DeleteCart",
		method: 'post',
		data
	})
}


//提交订单页面
export function OrderFound(data) {
	return request({
		url: "/Order/OrderFound",
		data
	})
}

//地址列表
export function AddressList(data) {
	return request({
		url: "/User/AddressList",
		method: 'post',
		data
	})
}
//添加地址
export function AddressAdd(data) {
	return request({
		url: "/User/AddressAdd",
		method: 'post',
		data
	})
}
//默认地址
export function AddressDefault(data) {
	return request({
		url: "/User/AddressDefault",
		method: 'post',
		data
	})
}

//创建订单
export function CreateOrder(data) {
	return request({
		url: "/Order/CreateOrder",
		method: 'post',
		data
	})
}

//提交订单
export function GoodsPay(data) {
	return request({
		url: "/Order/GoodsPay",
		method: 'post',
		data
	})
}


// 支付页面信息
export function OrderPay(data) {
	return request({
		url: "/Order/OrderPay",
		method: 'post',
		data
	})
}

// 支付页面信息
export function WechatGzPay(data) {
	return request({
		url: "/Order/OrderWeChatGZPay",
		method: 'post',
		data
	})
}

//微信公众号支付 配置 
export function WxConfig(data) {
	return request({
		url: "/Order/WxConfig",
		data
	})
}

//订单列表
export function OrderList(data) {
	return request({
		url: "/Order/OrderList",
		data
	})
}


//取消订单
export function CancelOrder(data) {
	return request({
		url: "/Order/CancelOrder",
		method: 'post',
		data
	})
}
//确认收货
export function SureOrder(data) {
	return request({
		url: "/Order/OrderSure",
		method: 'post',
		data
	})
}

//订单自提
export function OrderPick(data) {
	return request({
		url: "/Order/OrderPick",
		method: 'post',
		data
	})
}

//订单详情
export function OrderDetail(data) {
	return request({
		url: "/Order/OrderDetail",
		data
	})
}
//添加收藏
export function GoodsCollect(data) {
	return request({
		url: "/Order/GoodsCollect",
		method: 'post',
		data
	})
}

//删除收藏
export function DelCollect(data) {
	return request({
		url: "/Order/DeleteCollect",
		method: 'post',
		data
	})
}

//收藏列表
export function UserCollect() {
	return request({
		url: "/Order/CollectionList",
	})
}

//用户个人信息
export function UserIndex() {
	return request({
		url: "/User/Index",
	})
}

//修改头像
export function forUpload_1(data) {
	return request({
		url: "/User/forUpload_1",
		method: 'post',
		data
	})
}

//修改用户名
export function UserInfo(data) {
	return request({
		url: "/User/UserInfo",
		method: 'post',
		data
	})
}

//资金明细
export function FinanceList(data) {
	return request({
		url: "/Finance/FinanceList",
		data
	})
}

//资金明细
export function Record(data) {
	return request({
		url: "/Finance/Record",
		data
	})
}

//搜索商品
export function GoodsSearch(data) {
	return request({
		url: "/Goods/GoodsSearch",
		data
	})
}

//删除地址
export function AddressDelete(data) {
	return request({
		url: "/User/AddressDelete",
		method: 'post',
		data
	})
}

//修改支付密码
export function UserPassPay(data) {
	return request({
		url: "/User/UserPassPay",
		method: 'post',
		data
	})
}
//微信支付
export function OrderWeChatGZPay(data) {
	return request({
		url: "/Order/OrderWeChatGZPay",
		method: 'post',
		data
	})
}
//充值信息
export function UserRecharge1() {
	return request({
		url: "/Assets/Recharge"
	})
}

//充值
export function UserRecharge2(data) {
	return request({
		url: "/Assets/Recharge",
		method: 'post',
		data
	})
}
//user微信支付
export function OrderWeChatGZPay1(data) {
	return request({
		url: "/user/OrderWeChatGZPay",
		method: 'post',
		data
	})
}
//预约
export function Appoint(data) {
	return request({
		url: "/Car/Appoint",
		method: 'post',
		data
	})
}

//商圈
export function ShopList() {
	return request({
		url: "/Goods/ShopList"
	})
}

//商圈商家
export function ShopData(data) {
	return request({
		url: "/Goods/getShopData",
		data
	})
}

//商圈
export function ShopClass(data) {
	return request({
		url: "/Goods/ShopClass",
		data
	})
}


//商圈
export function ShopDetail(data) {
	return request({
		url: "/Goods/ShopDetail",
		data
	})
}

/**2022 09 27 11:15 
 * @param {Object} data
 */
//线下优品（线下商家）分类
export function OfflineClass() {
	return request({
		url: "/Goods/OfflineClass"
	})
}

//线下商家数据
export function OfflineShop(data) {
	return request({
		url: "/Goods/OfflineShop",
		data
	})
}

//线下商家详情
export function OfflineDetail(data) {
	return request({
		url: "/Goods/OfflineDetail",
		data
	})
}